package util

import (
	"crypto/md5"
	"encoding/hex"
)

func MD5(text []byte) string {
	md5Hash := md5.New()
	md5Hash.Write(text)
	cipher := md5Hash.Sum(nil)
	return hex.EncodeToString(cipher)
}
